jQuery Pocket Reference by David Flanagan

jQuery Pocket Reference by David Flanagan

Author:David Flanagan [David Flanagan]
Language: eng
Format: epub, mobi, pdf
Tags: COMPUTERS / Programming Languages / JavaScript
ISBN: 9781449397326
Publisher: O'Reilly Media
Published: 2010-12-12T16:00:00+00:00


global

This option specifies whether jQuery should trigger events that describe the progress of the Ajax request. The default is true; set this option to false to disable all Ajax-related events. (See Ajax Events for full event details.) The name of this option is confusing: it is named “global” because jQuery normally triggers its events globally rather than on a specific object.

Callbacks

The following options specify functions to be invoked at various stages during the Ajax request. The success option is already familiar: it is the callback function that you pass to methods like jQuery.getJSON(). Note that jQuery also sends notification about the progress of an Ajax request as events (unless you have set the global option to false).

context

This option specifies the object to be used as the context—the this value—for invocations of the various callback functions. This option has no default value, and if left unset, callbacks are invoked on the options object that holds them. Setting the context option also affects the way Ajax events are triggered (see Ajax Events). If you set it, the value should be a Window, Document, or Element on which events can be triggered.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.